
#include "Utils.h"

using namespace std;

Utils::Utils(void)
{
	srand (time(NULL));
}

Utils::~Utils(void)
{
	srand (time(NULL));
}
int Utils::Random(int rndn)
{
	
	int rt;
	if(rndn != 0){
	rt = rand() % rndn;
	}else{ rt =0;}
	return rt;

}
float Utils::RandomF(int rndn)
{
	float rt;
	rt = rand() % rndn;
	rt = rt/1000;
	return rt;
}
void Utils::startTempo()
{
	time(&start);

}
float Utils::getTempo()
{
	time(&end);
	dif = difftime(end,start);
	return dif;

}



